<% remote_form_for @trace, :html => { :id => 'traceForm' },:before => "Element.show('loader')",:success => "Element.hide('loader')"  do |f| %>
  <%= render :partial => 'traces/form', :locals => { :f => f, :label_text => "Create", :eventList => Event.find(:all, :order => "title ASC")} %>
<% end %>